package com.lora.communication.start;

import com.lora.communication.mqtt.LoraTopicManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

@Component
@Configuration
public class MqttStart {
    @Autowired
    private LoraTopicManager loraTopicManager;
    @Async
    public void run(){
        loraTopicManager.subscribe("application/#");
    }
}
